package model;
import org.newdawn.slick.Image;

public abstract class Thing implements Item{
	
	/*
	 * DRY
	 */
	
	protected double y;
	protected double x;
	protected double height, width;
	protected Image image;
	
	public Thing(double cX, double cY) {
		x = cX;
		y = cY;
	}
	
	public double getX() {
		return x;
	}
	
	public void setX(double pX) {
		x = pX;
	}
	
	public double getY() {
		return y;
	}
	
	public void setY(double pY) {
		y = pY;
	}
	
	public double getHeight() {
		return height;
	}
	
	public void setHeight(double d) {
		height = d;
	}
	
	public double getWidth() {
		return width;
	}
	
	public void setWidth(double d) {
		width = d;
	}
	
	public Image getImage(){
		return image;
	}
	
	public void move(double y)
	{
		setY(getY() - y);
	}

}
